<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width = device-width, initial-scale = 1.0, minimum-scale = 1.0, maximum-scale = 1.0, user-scalable = no"/>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no">
<meta name="keywords" content="" /> 
<meta name="description" content="" />
<title>我的金币</title>
<link type="text/css" href="../css/reset.css" rel="stylesheet" />
<link type="text/css" href="../css/public.css" rel="stylesheet" />
<link type="text/css" href="../css/style.css" rel="stylesheet" />
<link type="text/css" href="../css/wode.css" rel="stylesheet" />
<script>
    var deviceWidth = Math.min(640, window.innerWidth)
    document.documentElement.style.fontSize = deviceWidth / 7.5 + "px"
</script>
 <script src="../js/jquery.min.js?v=2.1.4"></script>
 <script src="../js/core.js"></script>
 <script src="../js/12.10.0wodejinbi.js"></script>
</head>

<body>
<!-- top -->
<div class="header">
    <header class="p_header public-red">
        <a href="javascript:history.go(-1);" class="p_header_left">
            <i class="p_left" title="返回"></i>
        </a>
        <h1 class="p_dizhi">我的金币</h1>
    </header>
</div>
<!--我的金币-->
<div class="buy_jinbi01 clearfix">
	<div class="buy_jinbi_left">
		<span class="public_qiandao" onclick="qiandao()">签到</span>
		<p id="mingtian"></p>
	</div>
	<div class="buy_jinbi_right">
		<h6>我的金币<a href="#"><img src="../images/yiwen.png" /></a></h6>
		<h5 id="jinbis"></h5>
		<p id="guoqi"></p>
	</div>
</div>
<div class="dianpu_title w_xxtaba">
    <ul class="clearfix w_xxtab_tit buy_jinbi">
        <li class="curr">
            <a href="javascript:mingxi(1);">金币明细</a>
        </li>
        <li>
            <a href="javascript:mingxi(2);">兑换记录</a>
        </li>
    </ul>
    <div class="w_ddcon1">
    	<div class="public-jianxi"></div>
    	<dl class="yue_list" id="jinbimingxi">
    	
    		
    	</dl>
    	<dl class="yue_list" id="jinbimingxi2">
    		
    		
    	</dl>
    </div>
   
</div>

<input type="hidden"  id="tuijians" value="1"/>
<script type="text/javascript" src="../js/jquery-1.10.1.min.js"></script>
<script type="text/javascript">
$(function () {
   $('.w_xxtab_tit li').on('click',function(){
        //获得当前被点击的元素索引值
        var Index = $(this).index();
        //给菜单添加选择样式
        $(this).addClass('curr').siblings().removeClass('curr');
        //显示对应的div
		$('.w_xxtaba').children('div').eq(Index).show().siblings('div').hide();
   
   });
});

//签到
$('.public_qiandao').on('click',function(){		
	$(this).html("已签到");		
});	
</script>

  <script>
  	   function mingxi(str){
  	   	  if(str==1){
  	   	  	ss=0;
  	   	 	sss=0;
 	   	pageNos=1;
 	   	 	pageNo=1;
 	   	 $("#jinbimingxi2").html("");
 	   	  $("#jinbimingxi").html("");
	       wodejinbi();
  	   	  }else if(str==2){
  	   	  		ss=0;
  	   	 	sss=0;
 	   	pageNos=1;
 	   	 	pageNo=1;
 	   	 $("#jinbimingxi2").html("");
 	   	  $("#jinbimingxi").html("");
	         wodejinbi2();
  	   	  }
  	   	  
  	   	  $("#tuijians").val(str);
  	   }
  	
  	
  	 $(window).scroll(function() {
    if ($(document).scrollTop() >= $(document).height() - $(window).height()) {
	          var tui=$("#tuijians").val();
	          if(tui==1){
               pageNo++
	           wodejinbi();
	          }else if(tui==2){
	          	pageNos++
	          	  wodejinbi2();
	          }
       }
  });	
  </script>


</body>
</html>